# 设置 CMake 的最低版本
cmake_minimum_required(VERSION 3.10)

# set(CMAKE_CXX_STANDARD 20)

# 设置项目名称和版本号
project(lab2.2)

set(SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -g")

file(GLOB SRC "${SRC_DIR}/*.cpp")

# 添加可执行文件
add_executable(${PROJECT_NAME} ${SRC})

set_target_properties(${PROJECT_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)